//
//  RMMKeyBoardAccessoryView.m
//  Romomo
//
//  Created by puman on 2016/10/26.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMKeyBoardAccessoryView.h"

@implementation RMMKeyBoardAccessoryView
- (instancetype)initWithFrame:(CGRect)frame{
    if (self =  [super initWithFrame:frame]) {
        self.backgroundColor  =  kWhiteColor;
        _doneBut =  [UIButton buttonWithType:(UIButtonTypeCustom)];
        _doneBut.frame = CGRectMake(0, 1, kScreenWideth, 40);
        [_doneBut setTitle:@"完成" forState:(UIControlStateNormal)];
        [_doneBut setTitleColor:kBasicColor forState:(UIControlStateNormal)];
        _doneBut.backgroundColor = kWhiteColor;
        [self addSubview:_doneBut];
        
        for (int i  =  0; i  < 2; i++) {
            UIView *view =  [[UIView alloc] initWithFrame:CGRectMake(0, 41 * i, self.width, 1)];
            view.backgroundColor  =  RGBA(198, 197, 198, 1);
            [self addSubview:view];
        }

    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
